package com.dymall.auth.service;

import com.dymall.auth.config.JwtProperties;
import com.dymall.auth.util.JwtTool;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class AuthService {

    private final JwtTool jwtTool;

    private final JwtProperties jwtProperties;

    public String createToken(Long userId){
        return jwtTool.createToken(userId, jwtProperties.getTokenTTL());
    }
}
